package com.rs.admin.sys.org.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author hedonglin
 * @since 2017-12-20
 */
@TableName("org_user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

	public User() {
	}

	public User(String account, String password, String nickname) {
		this.account = account;
		this.password = password;
		this.nickname = nickname;
	}

	/**
     * 编号
     */
	private Long id;
    /**
     * 工号
     */
	private String number;
    /**
     * 登录账号
     */
	private String account;
    /**
     * 密码
     */
	private String password;
    /**
     * 姓名
     */
	private String username;
    /**
     * 昵称
     */
	private String nickname;
    /**
     * 性别
     */
	private Integer sex;
    /**
     * 身份证号码
     */
	private String idcard;
	private Date birthday;
    /**
     * 家庭住址
     */
	private String address;
    /**
     * 常用手机号码
     */
	private String mobile;
    /**
     * 邮箱
     */
	private String email;
    /**
     * qq
     */
	private String qq;
    /**
     * 微信
     */
	private String wechat;
    /**
     * 办公固定电话
     */
	private String telephone;
    /**
     * 排序
     */
	private Integer sorting;
    /**
     * 状态  0正常 1冻结   -1 删除
     */
	private Integer status;
    /**
     * 审核状态  1待审核  0-审核通过   2审核不通过
     */
	private Integer reviewe;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("update_time")
	private Date updateTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWechat() {
		return wechat;
	}

	public void setWechat(String wechat) {
		this.wechat = wechat;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public Integer getSorting() {
		return sorting;
	}

	public void setSorting(Integer sorting) {
		this.sorting = sorting;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getReviewe() {
		return reviewe;
	}

	public void setReviewe(Integer reviewe) {
		this.reviewe = reviewe;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "User{" +
			", id=" + id +
			", number=" + number +
			", account=" + account +
			", password=" + password +
			", username=" + username +
			", nickname=" + nickname +
			", sex=" + sex +
			", idcard=" + idcard +
			", birthday=" + birthday +
			", address=" + address +
			", mobile=" + mobile +
			", email=" + email +
			", qq=" + qq +
			", wechat=" + wechat +
			", telephone=" + telephone +
			", sorting=" + sorting +
			", status=" + status +
			", reviewe=" + reviewe +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
